<?php

namespace App\Providers;

use App\User;
use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Session;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
        //View::share('username', 'zhang12313');
        //    u.imgurl = "http://"+u.domain+"/app/uploads/";
        //View::share('global_imgurl', config('global.global_imgurl'));
        //View::share('global_domain', config('global.global_domain'));
        date_default_timezone_set('PRC');
        //$user = User::where("id",Session::get("userid"))->first();
        //View::share('username', Session::get("userid"));
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}
